package course.API;

public class Demo02System {
    public static void main(String[] args) {
        long start = System.currentTimeMillis();

        int sum = 0;
        for (int i = 0; i < 999999999; i++) {
            sum += i;
        }
        System.out.println(sum);

        long end = System.currentTimeMillis();
        System.out.println(end-start);

        int [] arr1 = {1,2,3,4,5};
        int[] brr = new int[arr1.length];

        System.arraycopy(arr1,1,brr,0,2);
        for (int i = 0; i < brr.length; i++) {
            System.out.println(brr[i]);
        }
    }
}
